package cn.ly.core.obj;

public abstract class SupObj {
	
	private String name = "ly";
	private int age = 34;
	
	public SupObj(String name,int age){
		this.name = name;
		this.age = age;
	}
	
	public void getNameAndAge(){
		System.out.println(getName() + " : " + getAge());
	}
	
	void a2(){
		System.out.println("==SupObj a2()==");
	}
	
	protected void b2(){
		System.out.println("==SupObj b2()==");
	}
	
	private String getName(){
		return this.name;
	}
	
	private int getAge(){
		return this.age;
	}

}
